<?php
/*
Plugin Name: Aonz Kiwigator
Plugin URI: 
Description: Aonz Kiwigator
Version: 1.0
Author: AonzZung
Author URI: 
License: A "Slug" license name e.g. GPL2
*/
?>
<?php 
class AonzKiwigator
{
	public $activities_of_post;
	
	public function __construct()
	{
	} // function construct()
	
	public function init()
	{
// 		global $wpdb;
// 		$sql = ""
// 		$ = $wpdb->get_results( $sql );
	}
	
}

function is_activity_under_current_post($activity_id)
{
// 	global $wpdb;
	
// 	$ = $wpdb->get_results( $sql );
}

function init_activity_of_current_post()
{
	$aonzKiwi = new AonzKiwigator();
	$aonzKiwi->init();
}

add_action('kiwi_before_activity_entry_loop', 'init_activity_of_current_post');

bp_activity_update_meta

//TODO Comment form -> create activity and meta key link to current post
//action -> comment_form_after_fields
?>